const log4js = require('log4js');

// 设置日志
log4js.configure({
  appenders: { cheese: { type: 'file', filename: `logs/log4/${new Date().getFullYear()}-${new Date().getMonth() + 1}-${new Date().getDate()}` } },
  categories: { default: { appenders: ['cheese'], level: 'error' } }
});
const logger = log4js.getLogger('cheese');
module.exports = logger;